package router

import (
	"github.com/gin-gonic/gin"
	"vip-project/controller"
)

func Router(router *gin.Engine) {
	// 简单的路由组: v1
	v1 := router.Group("/v1")
	{
		userGroup := v1.Group("./user")
		{
			userGroup.POST("/register", controller.Register)
			userGroup.POST("/list", controller.List)
			userGroup.POST("/login", controller.Login)
			userGroup.POST("/update", controller.Update)
			userGroup.POST("/delete", controller.Delete)
		}
	}

}
